package com.riant.day08;

/**
 * @Classname Demo06
 * @Description TODO
 * @Date 2021/3/24 11:58
 * @Created by 张斌
 */
public class Demo06 implements Runnable{
    @Override
    public void run() {
        for (int i=0;i < 100; i++){
            System.out.println("线程vip来了"+i);
        }
    }

    public static void main(String[] args) throws InterruptedException {
        Demo06 demo06=new Demo06();
        Thread t1 = new Thread(demo06);
        t1.start();
        for (int i=0;i < 1000; i++){
            if(i==200){
                t1.join();
            }
            System.out.println("main"+i);
        }
    }
}
